package com.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.pojo.ForumTopic;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author testjava
 * @since 2022-08-20
 */
@Mapper
public interface ForumTopicMapper extends BaseMapper<ForumTopic> {
    List<ForumTopic> selectByFId(@Param("fid") Integer fid);

    ForumTopic selectByTid(@Param("tid") Integer tid);

    List<ForumTopic> getForumTopics(@Param("tid") Integer tid);

    List<ForumTopic> getByPage(@Param("currentPage") Integer currentPage, @Param("pageSize") Integer pageSize, @Param("fid") Integer fid);
}
